package xyz.gpgl.erp.logic.entity.emeus;

import com.baomidou.mybatisplus.core.enums.IEnum;

import common.util.mybatis.plus.logic.LogicBaseEmeus;
import org.springframework.stereotype.Component;

@Component
public class LogicSharesEmeus extends LogicBaseEmeus{

	private static final long serialVersionUID = 1L;

	/**股票编码*/
	public static final String code ="code";
	/**股票名称*/
	public static final String name ="name";
	/**证券交易所[0:上证,1:深证]*/
	public static final String stockExchange ="stock_exchange";
	/**当前价格*/
	public static final String currentPrice ="current_price";
	/**最后一个交易日涨跌金额*/
	public static final String upAndDownMoney ="up_and_down_money";
	/**最后一个交易日涨跌幅*/
	public static final String upAndDownRange ="up_and_down_range";
	/**每股净资产*/
	public static final String netAssets ="net_assets";
	/**市净率*/
	public static final String priceToBookRatio ="price_to_book_ratio";
	/**总营收*/
	public static final String totalRevenue ="total_revenue";
	/**总营收-同比*/
	public static final String totalRevenueYearOver ="total_revenue_year_over";
	/**净利润*/
	public static final String netProfit ="net_profit";
	/**净利润-同比*/
	public static final String netProfitYearOver ="net_profit_year_over";
	/**毛利率*/
	public static final String grossProfitMargin ="gross_profit_margin";
	/**净利率*/
	public static final String netInterestRate ="net_interest_rate";
	/**负债率*/
	public static final String debtRatio ="debt_ratio";
	/**每股未分配利润*/
	public static final String undistributedProfitPerShare ="undistributed_profit_per_share";
	/**上次牛市最大价格*/
	public static final String maxPrice ="max_price";
	/**是否两倍起售[0:是,1:否]*/
	public static final String doubleSales ="double_sales";
	/**当前成本价*/
	public static final String currentCostPrice ="current_cost_price";
	/**我的涨跌幅*/
	public static final String myRange ="my_range";
	/**证券交易所[0:上证,1:深证]*/
	public enum StockExchange implements IEnum<String>{

		/**证券交易所[0:上证,1:深证]*/
		shangzheng("0", "上证"),
		/**证券交易所[0:上证,1:深证]*/
		shenzheng("1", "深证");

		/**键值*/
		private final String key;
		/**建描述*/
		private final String desc;

		StockExchange(final String key, final String desc) {this.key = key;this.desc = desc;}

		@Override
		public String toString() {return desc; }

		@Override
		public String  getValue(){return this.key;}

	}
	/**是否两倍起售[0:是,1:否]*/
	public enum DoubleSales implements IEnum<String>{

		/**是否两倍起售[0:是,1:否]*/
		shi("0", "是"),
		/**是否两倍起售[0:是,1:否]*/
		fou("1", "否");

		/**键值*/
		private final String key;
		/**建描述*/
		private final String desc;

		DoubleSales(final String key, final String desc) {this.key = key;this.desc = desc;}

		@Override
		public String toString() {return desc; }

		@Override
		public String  getValue(){return this.key;}

	}

}
